package com.imooc.controller;

import com.imooc.grace.result.GraceJSONResult;
import com.imooc.service.ResumeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 啊昌
 * @date 2025/9/27 10:25
 * ResumeController 简历控制器
 */
@RequestMapping("resume")
@RestController
@Slf4j
public class ResumeController {
	@Autowired
	private ResumeService resumeService;

	/**
	 * 初始化用户简历
	 *
	 * @param userId
	 * @return
	 */
	@PostMapping("init")
	public GraceJSONResult init(@RequestParam("userId") String userId) {
		resumeService.initResume(userId);
		return GraceJSONResult.ok();
	}
}
